package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文件管理对象 file_management
 *
 * @author ruoyi
 * @date 2025-03-20
 */
public class FileManagement extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 文件唯一标识符（主键，自增） */
    private Long fileId;

    /** 文件名称 */
    @Excel(name = "文件名称")
    private String fileName;

    /** 文件类型（PDF, Word, Excel, PPT, IMG） */
    @Excel(name = "文件类型", readConverterExp = "P=DF,,W=ord,,E=xcel,,P=PT,,I=MG")
    private String fileType;

    /** 文件大小（单位：字节） */
    @Excel(name = "文件大小", readConverterExp = "单=位：字节")
    private Long fileSize;

    /** 上传日期和时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上传日期和时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date uploadDate;

    /** 文件存储路径 */
    @Excel(name = "文件存储路径")
    private String filePath;

    /** 上传者名称或ID */
    @Excel(name = "上传者名称或ID")
    private String Uploader;

    /** 文件描述 */
    @Excel(name = "文件描述")
    private String Description;

    /** 文件状态（正常, 待审, 已删除） */
    @Excel(name = "文件状态", readConverterExp = "正=常,,待=审,,已=删除")
    private String Status;

    /** 最后修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastModified;

    public void setFileId(Long fileId)
    {
        this.fileId = fileId;
    }

    public Long getFileId()
    {
        return fileId;
    }

    public void setFileName(String fileName)
    {
        this.fileName = fileName;
    }

    public String getFileName()
    {
        return fileName;
    }

    public void setFileType(String fileType)
    {
        this.fileType = fileType;
    }

    public String getFileType()
    {
        return fileType;
    }

    public void setFileSize(Long fileSize)
    {
        this.fileSize = fileSize;
    }

    public Long getFileSize()
    {
        return fileSize;
    }

    public void setUploadDate(Date uploadDate)
    {
        this.uploadDate = uploadDate;
    }

    public Date getUploadDate()
    {
        return uploadDate;
    }

    public void setFilePath(String filePath)
    {
        this.filePath = filePath;
    }

    public String getFilePath()
    {
        return filePath;
    }

    public void setUploader(String Uploader)
    {
        this.Uploader = Uploader;
    }

    public String getUploader()
    {
        return Uploader;
    }

    public void setDescription(String Description)
    {
        this.Description = Description;
    }

    public String getDescription()
    {
        return Description;
    }

    public void setStatus(String Status)
    {
        this.Status = Status;
    }

    public String getStatus()
    {
        return Status;
    }

    public void setLastModified(Date lastModified)
    {
        this.lastModified = lastModified;
    }

    public Date getLastModified()
    {
        return lastModified;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("fileId", getFileId())
                .append("fileName", getFileName())
                .append("fileType", getFileType())
                .append("fileSize", getFileSize())
                .append("uploadDate", getUploadDate())
                .append("filePath", getFilePath())
                .append("Uploader", getUploader())
                .append("Description", getDescription())
                .append("Status", getStatus())
                .append("lastModified", getLastModified())
                .toString();
    }
}
